<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var arr1 = [1, 3, 6, 2, 5, 6];

        var arr2 = arr1.map(function(item, index) {
            return item + 10; //让arr1中的每个元素加10

        })
        console.log(arr2);
    </script>
</body>

</html>